// MyLuaVM.h: interface for the CMyLuaVM class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYLUAVM_H__76CD1940_C959_4119_B200_AE0A1FD4B719__INCLUDED_)
#define AFX_MYLUAVM_H__76CD1940_C959_4119_B200_AE0A1FD4B719__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
extern "C"
{
#include "lua/lua.h"
#include "lua/lauxlib.h"
#include "lua/lualib.h"   
}
class CMyLuaVM  
{
public:
	CMyLuaVM();
	virtual ~CMyLuaVM();
public:
	int InitVM();
	int Run( char *sFile );
	int Close();
	int RunHookFun( char *sFile, int esp);
	int InitHook (char *sFile);
	int UnInitHook (char *sFile);
	int SysInitHook (char *sFile);
	int UnSysInitHook (char *sFile);
	int RunFun (char *sFile,char * pFunName, int esp) ;
	int RunCallBeforeFun (char *sFile,char * pFunName, int esp,int ret) ;
public:
	lua_State *L; 

};

#endif // !defined(AFX_MYLUAVM_H__76CD1940_C959_4119_B200_AE0A1FD4B719__INCLUDED_)
